using System.Configuration;

namespace OpenWaves
{
    public class LoggingConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("logSeverityThreshold", DefaultValue = LogEntrySeverity.Debug, IsRequired = false)]
        public LogEntrySeverity LogSeverityThreshold
        {
            get { return (LogEntrySeverity)this["logSeverityThreshold"]; }
            set { this["logSeverityThreshold"] = value; }
        }

        [ConfigurationProperty("logDirectory", DefaultValue = @"c:\temp\logs", IsRequired = false)]
        public string LogDirectory
        {
            get { return (string)this["logDirectory"]; }
            set { this["logDirectory"] = value; }
        }
    }
}